package com.tuo51.manager.service;


import com.tuo51.foudation.query.base.PagerQuery;
import com.tuo51.manager.domain.SysUser;
import com.tuo51.manager.vo.SysUserVO;
import org.springframework.data.domain.Page;

public interface SysUserService {

    boolean delete(String sysUserId);

    SysUser get(String sysUserId);

    Page<SysUserVO> page(PagerQuery pagerQuery);

    SysUserVO save(SysUserVO entityVo);

    /**
     * 重置初始密码
     */
    SysUserVO resetPassword(String userId);

    /**
     * 设置密码
     */
    SysUserVO updatePassword(String userId, String oldPassword, String password);

    /**
     * 找到用户
     * @param username
     * @return
     */
    SysUser findByLoginName(String username);

    SysUserVO updateUser(SysUserVO sysUserVo);
}
